#ifndef INFORMATION_H
#define INFORMATION_H

#include <QtGui>
#include "ui_information.h"
#include "constant.h"
#include "links.h"

class Information: public QWidget
{
    Q_OBJECT
public:
    Information(Links *link, QWidget *parent = 0);
    ~Information();

private:
    Links *m_link;
    qint32 m_state;
    QString m_account;
    QString m_nickName;
    QPlainTextEdit *inputEdit;
    Ui_informationForm *ui;
    QVector<QString> infoVec;
    int currenInfo;

public slots:
    void prePushButtonClicked();
    void addPushButtonClicked();
    void nextPushButtonClicked();
    void okPushButtonClicked();
    void result(qint32 replyKind);
    void setState(qint32 state);
    void setAccount(QString account);
    void setNickName(QString nickName);
};

#endif